package net.pulseproject.commons.midi.mediator;

import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;

import net.pulseproject.commons.midi.entity.MidiSocket;

public class ActivatedRoutingTable {
	
	private final Collection<MidiSocket> outgoingSockets;

	public ActivatedRoutingTable(final Collection<MidiSocket> outgoingSockets) {
		if(outgoingSockets == null) { throw new IllegalArgumentException("outgoingSockets == null"); }
		this.outgoingSockets = new HashSet<MidiSocket>(outgoingSockets);
	}

	public final Collection<MidiSocket> getOutgoingSockets() {
		return Collections.unmodifiableCollection(this.outgoingSockets);
	}
	
}
